remove header front kiosk

This commit is contained in:
Christian Schabesberger 2017-10-13 13:01:16 +02:00
parent 0951f0f824
commit 8e8d74b5b7
2 changed files with 0 additions and 37 deletions

View file

@ -102,17 +102,6 @@ public class KioskFragment extends BaseListInfoFragment<KioskInfo> {
}
}
/*//////////////////////////////////////////////////////////////////////////
// Init
//////////////////////////////////////////////////////////////////////////*/
protected View getListHeader() {
headerRootLayout = activity.getLayoutInflater().inflate(R.layout.kiosk_header, itemsList, false);
headerTitleView = headerRootLayout.findViewById(R.id.kiosk_title_view);
return headerRootLayout;
}
/*//////////////////////////////////////////////////////////////////////////
// Load and handle
//////////////////////////////////////////////////////////////////////////*/
@ -138,7 +127,6 @@ public class KioskFragment extends BaseListInfoFragment<KioskInfo> {
@Override
public void showLoading() {
super.showLoading();
animateView(headerRootLayout, false, 200);
animateView(itemsList, false, 100);
}
@ -146,9 +134,7 @@ public class KioskFragment extends BaseListInfoFragment<KioskInfo> {
public void handleResult(@NonNull final KioskInfo result) {
super.handleResult(result);
animateView(headerRootLayout, true, 100);
String title = KioskTranslator.getTranslatedKioskName(result.id, getActivity());
headerTitleView.setText("★★ " + title + " ★★");
ActionBar supportActionBar = activity.getSupportActionBar();
supportActionBar.setTitle(title);

View file

@ -1,23 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:id="@+id/kiosk_title_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="8dp"
android:layout_marginRight="8dp"
android:layout_marginTop="6dp"
android:ellipsize="end"
android:maxLines="1"
android:textAlignment="center"
android:textAppearance="?android:attr/textAppearanceSmall"
android:textSize="@dimen/kiosk_title_text_size"
tools:text="Top 20"
android:gravity="center_horizontal"/>
</RelativeLayout>