forked from firka/student-legacy
commit
87c4416b50
@ -80,7 +80,6 @@ public class WidgetTimetable extends HomeWidgetProvider {
|
|||||||
|
|
||||||
RemoteViews views = new RemoteViews(context.getPackageName(), R.layout.widget_timetable);
|
RemoteViews views = new RemoteViews(context.getPackageName(), R.layout.widget_timetable);
|
||||||
|
|
||||||
views.setViewVisibility(R.id.need_premium, View.GONE);
|
|
||||||
views.setViewVisibility(R.id.need_login, View.GONE);
|
views.setViewVisibility(R.id.need_login, View.GONE);
|
||||||
views.setViewVisibility(R.id.tt_grid_cont, View.GONE);
|
views.setViewVisibility(R.id.tt_grid_cont, View.GONE);
|
||||||
|
|
||||||
@ -95,9 +94,6 @@ public class WidgetTimetable extends HomeWidgetProvider {
|
|||||||
views.setOnClickPendingIntent(R.id.nav_refresh, makePending(context, ACTION_WIDGET_CLICK_NAV_REFRESH, appId));
|
views.setOnClickPendingIntent(R.id.nav_refresh, makePending(context, ACTION_WIDGET_CLICK_NAV_REFRESH, appId));
|
||||||
views.setRemoteAdapter(R.id.widget_list, serviceIntent);
|
views.setRemoteAdapter(R.id.widget_list, serviceIntent);
|
||||||
views.setEmptyView(R.id.widget_list, R.id.empty_view);
|
views.setEmptyView(R.id.widget_list, R.id.empty_view);
|
||||||
} else {
|
|
||||||
views.setViewVisibility(R.id.need_premium, View.VISIBLE);
|
|
||||||
views.setOnClickPendingIntent(R.id.buy_premium, makePending(context, ACTION_WIDGET_CLICK_BUY_PREMIUM, appId));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return views;
|
return views;
|
||||||
|
@ -114,13 +114,6 @@
|
|||||||
android:background="@drawable/card_layout_bg"
|
android:background="@drawable/card_layout_bg"
|
||||||
android:orientation="vertical" >
|
android:orientation="vertical" >
|
||||||
|
|
||||||
<!--<ImageView
|
|
||||||
android:layout_width="45dp"
|
|
||||||
android:layout_height="45dp"
|
|
||||||
android:paddingHorizontal="10dp"
|
|
||||||
android:paddingTop="5dp"
|
|
||||||
android:src="@drawable/tinta_icon" />-->
|
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/iv_1"
|
android:id="@+id/iv_1"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
@ -160,73 +153,4 @@
|
|||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
||||||
<RelativeLayout
|
|
||||||
android:visibility="gone"
|
|
||||||
android:id="@+id/need_premium"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="match_parent"
|
|
||||||
android:backgroundTint="#ffF4F4F4"
|
|
||||||
android:background="@drawable/card_layout_bg"
|
|
||||||
android:orientation="vertical" >
|
|
||||||
|
|
||||||
<!--<ImageView
|
|
||||||
android:layout_width="45dp"
|
|
||||||
android:layout_height="45dp"
|
|
||||||
android:paddingHorizontal="10dp"
|
|
||||||
android:paddingTop="5dp"
|
|
||||||
android:src="@drawable/tinta_icon" />-->
|
|
||||||
|
|
||||||
<ImageView
|
|
||||||
android:id="@+id/iv_2"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:adjustViewBounds="true"
|
|
||||||
android:paddingHorizontal="10dp"
|
|
||||||
android:paddingTop="10dp"
|
|
||||||
android:src="@drawable/tinta_image" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/tw_1"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_below="@id/iv_2"
|
|
||||||
android:layout_marginHorizontal="15dp"
|
|
||||||
android:fontFamily="@font/montserrat_medium"
|
|
||||||
android:text="Órák a kezdőképernyőd kényelméből."
|
|
||||||
android:textColor="@color/black"
|
|
||||||
android:paddingTop="10dp"
|
|
||||||
android:textSize="16sp"
|
|
||||||
android:textStyle="bold"
|
|
||||||
tools:ignore="HardcodedText" />
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_below="@id/tw_1"
|
|
||||||
android:fontFamily="@font/montserrat_medium"
|
|
||||||
android:text="Támogass Tinta szinten és helyezz egy widgetet a kezdőképernyődre."
|
|
||||||
android:textColor="@color/black"
|
|
||||||
android:layout_marginTop="0dp"
|
|
||||||
android:layout_marginHorizontal="15dp"
|
|
||||||
android:textSize="14sp"
|
|
||||||
tools:ignore="HardcodedText" />
|
|
||||||
|
|
||||||
<Button
|
|
||||||
android:id="@+id/buy_premium"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="40dp"
|
|
||||||
android:background="@drawable/btn_shape"
|
|
||||||
android:gravity="center"
|
|
||||||
android:text="Vigyél oda!"
|
|
||||||
android:padding="0dp"
|
|
||||||
android:layout_alignParentBottom="true"
|
|
||||||
android:layout_margin="10dp"
|
|
||||||
android:textColor="#ff691A9B"
|
|
||||||
android:fontFamily="@font/montserrat_medium"
|
|
||||||
android:textSize="16sp"
|
|
||||||
android:textStyle="bold"
|
|
||||||
tools:ignore="HardcodedText" />
|
|
||||||
|
|
||||||
</RelativeLayout>
|
|
||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
Loading…
x
Reference in New Issue
Block a user