This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<alpha | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
android:fromAlpha="0.0" | |
android:toAlpha="1.0" | |
android:duration="3000" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<set | |
xmlns:android="http://schemas.android.com/apk/res/android"> | |
<translate | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
android:fromXDelta="0%" | |
android:toXDelta="0%" | |
android:fromYDelta="200%" | |
android:toYDelta="0%" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.app.Activity; | |
import android.content.Intent; | |
import android.graphics.PixelFormat; | |
import android.os.Bundle; | |
import android.view.Window; | |
import android.view.animation.Animation; | |
import android.view.animation.AnimationUtils; | |
import android.widget.ImageView; | |
import android.widget.LinearLayout; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
android:layout_width="fill_parent" | |
android:layout_height="fill_parent" | |
android:background="#242729" | |
android:layout_gravity="center" | |
android:id="@+id/lin_lay" | |
android:gravity="center" | |
android:orientation="vertical" > | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.ktf-container { | |
position:relative; | |
padding-bottom:56.25%; | |
padding-top:30px; | |
height:0; | |
overflow:hidden; | |
} | |
.ktf-container iframe, .ktf-container object, .ktf-container embed { | |
position:absolute; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dependencies { | |
compile fileTree(dir: 'libs', include: ['*.jar']) | |
compile 'com.android.support:appcompat-v7:23.1.1' | |
compile 'com.android.support:design:23.1.0' | |
compile 'com.github.clans:fab:1.6.2' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<com.github.clans.fab.FloatingActionMenu | |
android:id="@+id/social_floating_menu" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_alignParentBottom="true" | |
android:layout_alignParentRight="true" | |
android:layout_marginBottom="11dp" | |
android:layout_marginLeft="11dp" | |
android:layout_marginRight="11dp" | |
fab:menu_animationDelayPerItem="55" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FloatingActionMenu materialDesignFAM; | |
FloatingActionButton floatingActionButton1, floatingActionButton2, floatingActionButton3, floatingActionButton4, floatingActionButton5, floatingActionButton6; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static Intent getOpenFacebookIntent(Context context) { | |
try { | |
context.getPackageManager() | |
.getPackageInfo("com.facebook.katana", 0); //Checks if FB is even installed. | |
return new Intent(Intent.ACTION_VIEW, | |
Uri.parse("fb://page/376227335860239")); //Trys to make intent with FB's URI | |
} catch (Exception e) { | |
return new Intent(Intent.ACTION_VIEW, | |
Uri.parse("https://www.facebook.com/karthikofficialpage")); //catches and opens a url to the desired page |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
materialDesignFAM = (FloatingActionMenu) findViewById(R.id.social_floating_menu); | |
floatingActionButton1 = (FloatingActionButton) findViewById(R.id.floating_facebook); | |
floatingActionButton2 = (FloatingActionButton) findViewById(R.id.floating_twitter); | |
floatingActionButton3 = (FloatingActionButton) findViewById(R.id.floating_linkdin); | |
floatingActionButton4 = (FloatingActionButton) findViewById(R.id.floating_google_plus); | |
floatingActionButton5 = (FloatingActionButton) findViewById(R.id.floating_instagram); | |
floatingActionButton6 = (FloatingActionButton) findViewById(R.id.floating_youtube); | |
floatingActionButton1.setOnClickListener(new View.OnClickListener() { | |
public void onClick(View v) { |