frogermcs / instamaterial Goto Github PK
View Code? Open in Web Editor NEWImplementation of Instagram with Material Design (originally based on Emmanuel Pacamalan's concept)
License: Apache License 2.0
Implementation of Instagram with Material Design (originally based on Emmanuel Pacamalan's concept)
License: Apache License 2.0
any ideas?
Hi,
Since this app is Apache 2 licensed, are you considering the fact to add it to F-Droid? There is a strong community behind, that do not use Google Play nor anything else, except F-Droid.
You can find some documentation here.
You can write a small new build flavor to exclude non-free binaries and libraries.
this is what i got when i'm trying to take a picture with my Galaxy S4
04-02 16:03:11.991 27490-27490/io.github.froger.instamaterial E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: io.github.froger.instamaterial, PID: 27490
java.lang.RuntimeException: setParameters failed
at android.hardware.Camera.native_setParameters(Native Method)
at android.hardware.Camera.setParameters(Camera.java:1747)
at com.commonsware.cwac.camera.CameraView.takePicture(CameraView.java:308)
at com.commonsware.cwac.camera.CameraView.takePicture(CameraView.java:279)
at io.github.froger.instamaterial.ui.activity.TakePhotoActivity.onTakePhotoClick(TakePhotoActivity.java:145)
at io.github.froger.instamaterial.ui.activity.TakePhotoActivity$$ViewInjector$1.doClick(TakePhotoActivity$$ViewInjector.java:35)
at butterknife.internal.DebouncingOnClickListener.onClick(DebouncingOnClickListener.java:22)
at android.view.View.performClick(View.java:4633)
at android.view.View$PerformClick.run(View.java:19330)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:157)
at android.app.ActivityThread.main(ActivityThread.java:5356)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1265)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1081)
at dalvik.system.NativeStart.main(Native Method)
workspace/InstaMaterial/app/src/main/res/layout/activity_publish.xml:3: Error: Suspicious namespace and prefix combination [NamespaceTypo]
xmlns:app="http://schemas.android.com/tools"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Explanation for issues of type "NamespaceTypo":
Accidental misspellings in namespace declarations can lead to some very
obscure error messages. This check looks for potential misspellings to help
track these down.
1 errors, 0 warnings
:app:lintVitalRelease FAILED
FAILURE: Build failed with an exception.
i face this error in your project. i tried many solutions but didn't work any.. help to solve this problem.
This is the error I get :
Failed to set up Android modules in project 'InstaMaterial-master': Unsupported method: SourceProvider.getJniDirectories().
The version of Gradle you connect to does not support that method.
To resolve the problem you can change/upgrade the target version of Gradle you connect to.
Alternatively, you can ignore this exception and read other information from the model.
When I test this app on devices with less than 1.5GB of RAM, the app starts the first time. But then crashes. Or it crashes specifically when accessing to the "CommentsActivity". (API 18)
The only log shown is this:
I/Choreographer: Skipped 136 frames! The application may be doing too much work on its main thread.
A/libc: @@@ ABORTING: invalid address or address of corrupt block 0x55cf6468 passed to dlfree
A/libc: Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1), thread 21257
Thanks!
Hi,
May I contribute some interesting documentation for this project, like setup documentation, code contribution, Bug reports guidelines
I want to open my feeds, news and regulators in the InstaMaterial app but it does not work, I try to go back to the homepage and then go back in the app but all the features do not work, which is when I press the news directly into new notifications, as well as my settings can set the available language in settings.
Opening my feeds, news and settings does not work, and all the other features do not work, when I open an existing feature in the Instamaterial app all the features do not work, I have repeatedly pressed these features but it does not work too, I can only see other people's posts only, and I myself can not post my photos.
seems like if I remove the code from setupHeader:
Picasso.with(this)
.load(profilePhoto)
.placeholder(R.drawable.photo)
.resize(avatarSize, avatarSize)
.centerCrop()
.transform(new CircleTransformation())
.into(ivMenuUserProfilePhoto);
Got stuck about a few hundred milliseconds when I first open the drawer. Don't known why
Hey is there any way to implement Reverse Reveal Background View.I have a FAB which opens up a fragment which implements this Reveal Background View .However when i back press it should reverse its reveal to the point of the FAB.Thanks!
Sorry to ask this question there...
But I searched a lot, Only get some thing like
android:windowSoftInputMode="adjustPan"
to make all the content move up when the keyboard pop up.
I want to know how it is compeleted to make editText move along with key board like InstaMatirial do in the CommnetActivity.
Thanks for any reply.
Would you say this approach for click listening is better? This way you can use ButterKnife's @OnClick
inside the CellFeedViewHolder
, but you have to pass it a listener.
Process: io.github.froger.instamaterial, PID: 6355
java.lang.RuntimeException: setParameters failed
at android.hardware.Camera.native_setParameters(Native Method)
at android.hardware.Camera.setParameters(Camera.java:2189)
at com.commonsware.cwac.camera.CameraView.takePicture(CameraView.java:308)
at com.commonsware.cwac.camera.CameraView.takePicture(CameraView.java:279)
at io.github.froger.instamaterial.ui.activity.TakePhotoActivity.onTakePhotoClick(TakePhotoActivity.java:160)
at io.github.froger.instamaterial.ui.activity.TakePhotoActivity$$ViewInjector$1.doClick(TakePhotoActivity$$ViewInjector.java:35)
at butterknife.internal.DebouncingOnClickListener.onClick(DebouncingOnClickListener.java:22)
at android.view.View.performClick(View.java:4792)
at android.view.View$PerformClick.run(View.java:19938)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5671)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:960)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)
Process: io.github.froger.instamaterial, PID: 4175
java.lang.IllegalStateException: Preview mode must have started before you can take a picture
at com.commonsware.cwac.camera.CameraView.takePicture(CameraView.java:331)
at com.commonsware.cwac.camera.CameraView.takePicture(CameraView.java:279)
at io.github.froger.instamaterial.ui.activity.TakePhotoActivity.onTakePhotoClick(TakePhotoActivity.java:153)
at io.github.froger.instamaterial.ui.activity.TakePhotoActivity_ViewBinding$1.doClick(TakePhotoActivity_ViewBinding.java:41)
at butterknife.internal.DebouncingOnClickListener.onClick(DebouncingOnClickListener.java:22)
at android.view.View.performClick(View.java:5198)
at android.view.View$PerformClick.run(View.java:21147)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
Hi, how i can add actions on click some elements into drawer menu?
Thanks
When the likes counter is updated, this warning appears in the console.
09-18 14:47:14.751 8414-8414/io.github.froger.instamaterial W/View: requestLayout() improperly called by android.support.v7.widget.AppCompatTextView{b2730f6 V.ED..... ......ID 0,0-143,57} during layout: running second layout pass
I also have a TextSwitcher in my RecyclerView items and when calling textSwitcher.setText
in my ItemAnimator, i also have this warning.
Would you have an idea why this is happening and how we could avoid it ?
Thanks in advance for the help !
Just saw the concept video and I want it so bad..
Failed to resolve:com.commonsware.cwac:camera:0.7+ in AS 2.2 with gradle version 2.14.1. Any ideas?
sometimes, I scroll up, then scroll down, the content of toolbar disappear.
I've used SonarQube and found this bug which is not critical but it should be fixed.
Utility classes should not have public constructors
Utility classes, which are collections of static members, are not meant to be instantiated. Even abstract utility classes, which can be extended, should not have public constructors.
Java adds an implicit public constructor to every class which does not define at least one explicitly. Hence, at least one non-public constructor should be defined.
Thank you
Is this app on play store?
So you have been release too many version but do I don't get any link of apk file.
If you provide apk from release then it will good for demo.
Thanks.
please refer to below:
https://parse.com
I discovered a bug in feed animation: if you set visibility to gone on the square image view,you will find animation just happen to first feed
this is not discovered in current implementation cause first feed take the whole screen
I did that cause I need to simulate feeds that dont have image or image that its height is less than screen height
Error:(1, 0) Plugin is too old, please update to a more recent version, or set ANDROID_DAILY_OVERRIDE environment variable to "8051cdccc746d532152541ee35015fd83699f14"
Fix plugin version and sync project
Open File
SonarQube is saying that methods returns should not be invariant
When a method is designed to return an invariant value, it may be poor design, but it shouldn't adversely affect the outcome of your program. However, when it happens on all paths through the logic, it is surely a bug.This rule raises an issue when a method contains several return statements that all return the same value.
Thank you
I need help with the camera layout. I am trying to implement full size camera view with the transparent panels top and bottom both. Can you guide how I can edit to to customize the camera view?
all data include header,options and photos are build in just one RecyclerView In the UserProfileActivity.
How can i change the photos only when click the tabs?
You code well!
And i have a very simple question to ask you.
app/src/main/java/io/github/froger/instamaterial/ui/adapter/GlobalMenuAdapter.java
you set the drawer items , but how can i add a click event?
Just downloaded this app, and deployed. I see Toolbar above and then this:
Android 4.0.3 device.
compileSdkVersion 23
buildToolsVersion "23.0.2"
Device: SHV-E160S
02-06 23:58:07.109 13909-13909/io.github.froger.instamaterial E/AndroidRuntime: FATAL EXCEPTION: main
java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid view holder adapter positionViewHolder{41933fb0 position=7 id=-1, oldPos=0, pLpos:0 scrap [attachedScrap] tmpDetached not recyclable(1) no parent}
at android.support.v7.widget.RecyclerView$Recycler.validateViewHolderForOffsetPosition(RecyclerView.java:4251)
at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:4382)
at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:4363)
at android.support.v7.widget.LinearLayoutManager$LayoutState.next(LinearLayoutManager.java:1961)
at android.support.v7.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1370)
at android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1333)
at android.support.v7.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:562)
at android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:2864)
at android.support.v7.widget.RecyclerView.onLayout(RecyclerView.java:3071)
at android.view.View.layout(View.java:11447)
at android.view.ViewGroup.layout(ViewGroup.java:4224)
at android.support.design.widget.CoordinatorLayout.layoutChild(CoordinatorLayout.java:1037)
at android.support.design.widget.CoordinatorLayout.onLayoutChild(CoordinatorLayout.java:747)
at android.support.design.widget.ViewOffsetBehavior.onLayoutChild(ViewOffsetBehavior.java:42)
at android.support.design.widget.AppBarLayout$ScrollingViewBehavior.onLayoutChild(AppBarLayout.java:1156)
at android.support.design.widget.CoordinatorLayout.onLayout(CoordinatorLayout.java:760)
at android.view.View.layout(View.java:11447)
at android.view.ViewGroup.layout(ViewGroup.java:4224)
at android.widget.RelativeLayout.onLayout(RelativeLayout.java:925)
at android.view.View.layout(View.java:11447)
at android.view.ViewGroup.layout(ViewGroup.java:4224)
at android.widget.FrameLayout.onLayout(FrameLayout.java:431)
at android.view.View.layout(View.java:11447)
at android.view.ViewGroup.layout(ViewGroup.java:4224)
at android.support.v4.widget.DrawerLayout.onLayout(DrawerLayout.java:1043)
at android.view.View.layout(View.java:11447)
at android.view.ViewGroup.layout(ViewGroup.java:4224)
at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1634)
at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1492)
at android.widget.LinearLayout.onLayout(LinearLayout.java:1405)
at android.view.View.layout(View.java:11447)
at android.view.ViewGroup.layout(ViewGroup.java:4224)
at android.widget.FrameLayout.onLayout(FrameLayout.java:431)
at android.view.View.layout(View.java:11447)
at android.view.ViewGroup.layout(ViewGroup.java:4224)
at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1634)
at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1492)
at android.widget.LinearLayout.onLayout(LinearLayout.java:1405)
at android.view.View.layout(View.java:11447)
at android.view.ViewGroup.layout(ViewGroup.java:4224)
at android.widget.FrameLayout.onLayout(FrameLayout.java:431)
at android.view.View.layout(View.java:11447)
at android.view.ViewGroup.layout(ViewGroup.java:4224)
at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1634)
at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1492)
at android.widget.LinearLayout.onLayout(LinearLayout.java:1405)
at android.view.View.layout(View.java:11447)
at android.view.ViewGroup.layout(ViewGroup.java:4224)
at android.widget.FrameLayout.onLayout(FrameLayout.java:431)
at android.view.View.layout(View.java:11447)
at android.view.ViewGroup.layout(ViewGroup.java:4224)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1633)
at android.view.ViewRootImpl.handleMessage(ViewRootImpl.java:2590)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4512)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.
There is no videos loading up and i dont see in code also for videos
In MainActivity, when I moved startContentAnimation() into onCreate():
`@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
setupFeed();
//if (savedInstanceState == null) {
// pendingIntroAnimation = true;
//} else {
// feedAdapter.updateItems(false);
//}
startContentAnimation();
}`
It supposed to play the recyclerview's enter animation after the activity created, but I found that the FeedItemAnimator's animateAdd didn't called, why?
I want to do something on header expand and collapse event, but I am not able to get that event.
so how can i do that?
Adding more information related to project and contribution.
Hi ,
I am getting crash in TakePhotoActivity.
05-10 14:37:43.152 28423-28423/io.github.froger.instamaterial E/AndroidRuntime: FATAL EXCEPTION: main
Process: io.github.froger.instamaterial, PID: 28423
java.lang.RuntimeException: setParameters failed
at android.hardware.Camera.native_setParameters(Native Method)
at android.hardware.Camera.setParameters(Camera.java:2015)
at com.commonsware.cwac.camera.CameraView.takePicture(CameraView.java:308)
at com.commonsware.cwac.camera.CameraView.takePicture(CameraView.java:279)
at io.github.froger.instamaterial.ui.activity.TakePhotoActivity.onTakePhotoClick(TakePhotoActivity.java:155)
at io.github.froger.instamaterial.ui.activity.TakePhotoActivity$$ViewBinder$1.doClick(TakePhotoActivity$$ViewBinder.java:35)
at butterknife.internal.DebouncingOnClickListener.onClick(DebouncingOnClickListener.java:22)
at android.view.View.performClick(View.java:4785)
at android.view.View$PerformClick.run(View.java:19884)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5343)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700)
Caused by: java.lang.NullPointerException
at io.github.froger.instamaterial.ui.activity.MainActivity.setupFeed(MainActivity.java:60)
at io.github.froger.instamaterial.ui.activity.MainActivity.onCreate(MainActivity.java:44)
Just a question.. u guys really use Hugo + Timber? Is that a got option? Please, tell me more..
Hello, someone is sell this code
Hi ,
I use instaMaterial app . I developed it and change lots of things. When I loaded it to Google Play Store , it gave me an eror. This app is impersonates İnstagram . Has anyone else encountered this error? Or do you have any suggestion for this problem?
Thanks ,
Hi, I've installed the app and get this error when try to take a photo
E/AndroidRuntime: FATAL EXCEPTION: main
Process: io.github.froger.instamaterial, PID: 1803
java.lang.IllegalStateException: Preview mode must have started before you can take a picture
at com.commonsware.cwac.camera.CameraView.takePicture(CameraView.java:331)
at com.commonsware.cwac.camera.CameraView.takePicture(CameraView.java:279)
at io.github.froger.instamaterial.ui.activity.TakePhotoActivity.onTakePhotoClick(TakePhotoActivity.java:153)
at io.github.froger.instamaterial.ui.activity.TakePhotoActivity_ViewBinding$1.doClick(TakePhotoActivity_ViewBinding.java:41)
at butterknife.internal.DebouncingOnClickListener.onClick(DebouncingOnClickListener.java:22)
at android.view.View.performClick(View.java:5265)
at android.view.View$PerformClick.run(View.java:21534)
at android.os.Handler.handleCallback(Handler.java:815)
at android.os.Handler.dispatchMessage(Handler.java:104)
at android.os.Looper.loop(Looper.java:207)
at android.app.ActivityThread.main(ActivityThread.java:5737)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:679)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.