Skip to main content

Featured

Android studio “SDK tools directory is missing”

Following 2 possible solutions will resolve this problem :  Solution1 : To fix the problem, it was required that I list the path to my corporate PAC file by using  Configure -> "Appearance and Behavior" -> System Settings -> HTTP Proxy . I selected "Automatic proxy configuration url:" Delete your  ~/.Android*  folders (losing all of your settings :/). Run Android Studio. It will show you a welcome wizard where it tries to download the SDK again (and fails due to my rubbish internet). Click the X on the wizard window. That will enable you to get to the normal welcome dialog. Go to Settings->Project Defaults->Project Structure and change the Android SDK location to the correct one. Solution 2 : To fix the problem, it was required that I list the path to my corporate PAC file by using  Configure -> "Appearance and Behavior" -> System Settings -> HTTP Proxy . I selected "Automatic proxy configuration url:&quo

Code to fix the issue of SoftKeyboard push my layout up,when it appears,Android

In my ParkingHero Simplified Vertion Project ,i faced this issue of ,my Layout moves up when my Edit Text having Focus:


Here in this image i try to Enter text on left Side EditText,text entered perfectly on selected EditText,but EditText on Right side having Camera image will moves upwards .

This is an issue,i fixed this by setting
android:windowSoftInputMode="adjustPan|adjustResize" property to my Activity in Manifest file like:
<activity
android:name=".PL.Tablet.MainScreen"
android:label="@string/app_name"
android:configChanges="orientation|keyboardHidden|screenLayout"
android:windowSoftInputMode="adjustPan|adjustResize" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>

After using this Still iam getting issue of,Second EditText(Having Camera image) not moved to Upward Direction after pressing that for that i changed code in my Manifest and in my Activity like this:

1)This will handle Right side EditText SoftKey board.
<activity
android:name=".PL.Tablet.MainScreen"
android:label="@string/app_name"
android:configChanges="orientation|keyboardHidden"
android:windowSoftInputMode="stateHidden" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>

2)This will handle Left side EditText SoftKey board.
 
secondEditText.setOnClickListener(new View.OnClickListener() { 
@Override
public void onClick(View v) {
// TODO Auto-generated method stub
getWindow().setSoftInputMode(WindowManager.LayoutParams.
SOFT_INPUT_ADJUST_RESIZE);

getWindow().setSoftInputMode(WindowManager.LayoutParams.
SOFT_INPUT_ADJUST_PAN);
}
});
 
here in this after clicking Left side EditText we can chnage the Softkeyboard Properties..
 
Thats why it satisfied both cases..
 
Now there is no issue at all..


 
 

Comments

Post a Comment