I have a problem.
I made custom Dialog
(loading spinner).
I touching down the Button
. Then opens RelativeLayout
with table and edit text which works like search.
My problem is that when i show loader between button touch and opening Layout it focuses on EditText
but doesn't show keyboard. When i don't use my dialog, it works fine. I tried it on foreground and in thread - the same result.
XML:
<ProgressBar
android:layout_width="100dp"
android:layout_height="100dp"
android:indeterminateOnly="false"
android:id="@+id/loader_spiner"
android:background = "@xml/progress"
android:layout_centerVertical="true"
android:layout_centerHorizontal="true" />
</RelativeLayout>
Code:
public void prepareLoader(){
loader = new Dialog(context);
loader.setContentView(R.layout.ag_loader);
loader.getWindow().setBackgroundDrawable(new ColorDrawable(android.graphics.Color.TRANSPARENT));
spinerLoader = (ProgressBar) loader.findViewById(R.id.loader_spiner);
}
public void showLoader(){
spinerLoader.startAnimation(AnimationUtils.loadAnimation(this, R.xml.splash_spinner));
loader.show();
}
public static void hideLoader(){
loader.hide();
}
Thanks a lot.