معرفی کتابخانه PRDownloader
-
مطالب مشابه
-
توسط Omid Zakeri
این کتابخانه شامل یک Floating Action Button است برای نمایش قسمت Navigation View یک منوی بسیار زیبا استفاده شده است.
در ابتدا مورد زیر را در قسمت build.gradle اضافه کنید:
dependencies{ compile 'com.github.andremion:floatingnavigationview:1.1.1' }
قسمت layout.xml مورد زیر را اضافه کنید:
<?xml version="1.0" encoding="utf-8"?> <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" android:fitsSystemWindows="true"> ... <com.andremion.floatingnavigationview.FloatingNavigationView android:id="@+id/floating_navigation_view" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_margin="@dimen/fab_margin" app:layout_anchor="@id/toolbar" app:layout_anchorGravity="bottom|end" app:drawMenuBelowFab="true" app:headerLayout="@layout/navigation_view_header" app:menu="@menu/menu_navigation_view" /> </android.support.design.widget.CoordinatorLayout>
قسمت کلاس مربوط به Activity :
public class MainActivity extends AppCompatActivity { private FloatingNavigationView mFloatingNavigationView; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); setSupportActionBar(toolbar); mFloatingNavigationView = (FloatingNavigationView) findViewById(R.id.floating_navigation_view); mFloatingNavigationView.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { mFloatingNavigationView.open(); } }); mFloatingNavigationView.setNavigationItemSelectedListener(new NavigationView.OnNavigationItemSelectedListener() { @Override public boolean onNavigationItemSelected(MenuItem item) { Snackbar.make((View) mFloatingNavigationView.getParent(), item.getTitle() + " Selected!", Snackbar.LENGTH_SHORT).show(); mFloatingNavigationView.close(); return true; } }); } @Override public void onBackPressed() { if (mFloatingNavigationView.isOpened()) { mFloatingNavigationView.close(); } else { super.onBackPressed(); } }
پشتیبانی : Floating-Navigation-View
Floating-Navigation-View-master.zip
-
توسط Omid Zakeri
کتابخانه WindowImageView صفحه نمایش را به صورت یک background خاص نمایش می دهد همان طور که می بینید جلوه زیبا و حرفه ای به اپلیکیشن شما می دهد.
ابتدا در قسمت build.gradle موارد زیر را اضافه کنید:
repositories { maven { url "https://jitpack.io" } } dependencies { compile 'com.github.Bleoo:WindowImageView:1.0.2' }
در قسمت xml.
<io.github.bleoo.windowimageview.WindowImageView android:id="@+id/window_image_view" android:layout_width="match_parent" android:layout_height="180dp" app:frescoEnable="false" app:src="@drawable/timg" />
و در قسمت کلاس مربوط اکتیویتی قسمت زیر را اضافه کنید:
window_image_view.setFrescoEnable(true); window_image_view.setImageResource(R.drawable.timg); window_image_view.bindRecyclerView(recyclerView);
راهنمایی و پشتیبانی : WindowImageView
WindowImageView-master.zip
-
توسط Omid Zakeri
MultiSnapRecyclerView کتابخانه ای با طراحی زیبا که به شما این امکان را می دهد لیست خود را به بهترین شکل و با طراحی فوق العاده طراحی کنید.
ابتدا در قسمت Gradle مورد زیر را اضافه کنید:
dependencies { implementation 'com.github.takusemba:multisnaprecyclerview:1.3.3' }
قسمت xml
<com.takusemba.multisnaprecyclerview.MultiSnapRecyclerView android:layout_width="match_parent" android:layout_height="wrap_content" app:msrv_gravity="start" or center, end app:msrv_ms_per_inch="@dimen/normal_speed" // speed of scrolling through. app:msrv_snap_count="2" /> items to scroll over
set layout manager
LinearLayoutManager layoutManager = new LinearLayoutManager(this); multiSnapRecyclerView.setLayoutManager(layoutManager); multiSnapRecyclerView.setAdapter(adapter); multiSnapRecyclerView.setOnSnapListener(new OnSnapListener() { @Override public void snapped(int position) { // do something with the position of the snapped view } });
راهنما و پشتیبانی : MultiSnapRecyclerView
MultiSnapRecyclerView-master.zip
-
توسط Omid Zakeri
یک کتابخانه بسیار جذاب و زیبا برای طراحی صفحات با فرگمنت های متفاوت.
هدف استفاده از Fragment ها ساده تر می شود.
مدیریت بهتر فرگمنت ها
ویژگی API قدرتمند
یادداشت های انگلیسی به اندازه کافی
سخت ترین استثنائات
استثناها و اشکالات معمول در جداول را حل کنید
انیمیشن انتقال فرگمنت
گزینه پیکربندی تگ fragment
اضافه کردن روش onBackPressed برای فرگمنت ها
گزینه ای برای پیکربندی پراکنده حالت پیکربندی
پشتیبانی از DialogFragment
و ...
راهنما و پشتیبانی: FragmentRigger
FragmentRigger-master.zip
-
توسط Omid Zakeri
یک کتابخانه بسیار زیبا که جابجایی بین تب ها در فرگمنت ها را بصورت حبابی نمایش می دهد
دانلود :
compile 'com.github.florent37:bubbletab:1.0.2'
BubbleTab را به صورت زیر به layout.xml خود اضافه کنید
شما میتوانید دو پارامتر زیر را اضافه کنید
circleColor circleRatio <com.github.florent37.bubbletab.BubbleTab android:id="@+id/bubbleTab" android:layout_width="match_parent" android:layout_height="wrap_content" android:clipToPadding="false" android:background="@android:color/white" android:elevation="10dp" app:bubbleTab_circleColor="@color/colorAccent" app:bubbleTab_circleRatio="1.25" > <ImageView android:layout_width="match_parent" android:layout_height="match_parent" android:layout_weight="1" android:padding="16dp" android:src="@drawable/bubbletab_ic_hourglass_selector" /> <ImageView android:layout_width="match_parent" android:layout_height="match_parent" android:layout_weight="1" android:padding="16dp" android:src="@drawable/bubbletab_ic_event_selector" /> <ImageView android:layout_width="match_parent" android:layout_height="match_parent" android:layout_weight="1" android:padding="16dp" android:src="@drawable/bubbletab_ic_query_selector" /> <ImageView android:layout_width="match_parent" android:layout_height="match_parent" android:layout_weight="1" android:padding="16dp" android:src="@drawable/bubbletab_ic_search_selector" /> <ImageView android:layout_width="match_parent" android:layout_height="match_parent" android:layout_weight="1" android:padding="16dp" android:src="@drawable/bubbletab_ic_home_selector" /> </com.github.florent37.bubbletab.BubbleTab> <android.support.v4.view.ViewPager android:id="@+id/viewPager" android:layout_width="match_parent" android:layout_height="match_parent"/>
سپس برای set کردن viewPager از روش زیر استفاده کنید
bubbleTab.setupWithViewPager(viewPager);
پشتیبانی: BubbleTab
BubbleTab-master.zip
-
-
فایل
پست های پیشنهاد شده
به گفتگو بپیوندید
هم اکنون می توانید مطلب خود را ارسال نمایید و بعداً ثبت نام کنید. اگر حساب کاربری دارید، برای ارسال با حساب کاربری خود اکنون وارد شوید .